package Servlet;

import Utils.FileUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

@Controller
public class FileUploadServlet {

    @RequestMapping(path = "/upload.form")
    public String FileUpload(MultipartFile file) {
        System.out.println("upload");
        FileUtils.SaveFile(file);
        return "index";
    }

}
